<extend name="Base/common"/>

<block name="header">
    <include file="Public/_nav"/>
    <link type="text/css" rel="stylesheet" href="__CSS__/wckc.css">
    <script type="text/javascript" src="__JS__/common.js"></script>
</block>

<block name="body">
      <!--   <include file="Public/_hot_sell"/> -->
      <!-- 左侧菜start -->
      <div class="col-xs-2">            
        <include file="Public/sidebar"  />
      </div>
      <!-- 左侧菜end -->

  <!--内容栏start-->
  <div class="col-xs-10 content"> 
<!-- 右侧 nav -->
         <ul class="nav nav-tabs">
           <li><a href="{:U('Student/index')}"><i class="icon icon-th-list"> </i>学生选课</a></li>  
           <li><a href="{:U('Student/classscore')}"><i class="icon icon-calendar"> </i>学生成绩</a></li>           
           <li><a href="{:U('Student/outstand')}"><i class="icon icon-calendar"> </i>优秀学员</a></li>
           <li class="active"><a href="{:U('Student/updateScoredata')}"><i class="icon icon-th-large"> </i>学期成绩汇总</a></li>
       </ul>
       <div class="right_box">
       <h4 style="color:#5A81A8">&nbsp;&nbsp;<span class="icon icon-user"></span><a href="__SELF__">期末学生成绩汇总</a></h4> 
       
        <form method="post" action="" name="cid" class="form-horizontal form-condensed" >

        <div class="form-group">        
          <label class="col-md-3 control-label required">请输选择备份学期{$term}</label>
            <div class="col-md-4">
            <select name="term" class="form-control form-horizontal" role="form" >
            <!-- onchange="this.form.submit()" --> 
            <volist name='termlist' id='vo'>           
             <option value = "{$vo.term}" " <if condition="$vo.term eq $term">selected</if>>{$vo.term_ch}</option>
           
            </volist>
            </select></div>
            </div>
        <div class="form-group"> 
             <label class="col-sm-3 control-lable text-right  required">请输入当前学期编号
               </label>
               <div class="col-md-4">            
              <input class="form-control" type="text"  name="term2" value="" > 
            </div>
            </div>
           <div class="form-group"> 
            <div class="col-md-offset-3 col-md-8"> 
              <button type="submit" class="btn btn-primary">确认</button>
              <button type="button" class="btn btn-danger">取消</button>  
              </div>
              <div class="col-md-offset-3 col-md-8 " style="color:#CC4444">{$error_msg}</div>
              
            </div>
          </form>            
        </div>

        <div class="right_box">
         <h4 style="color:#5A81A8">&nbsp;&nbsp;<span class="icon icon-user"></span><a href="__SELF__">数据维护</a>（警告，以下操作不可恢复！）</h4> 
         <form method="post" action="{:U('Student/deleteAllStudent')}" name="cid" class="form-horizontal" >

         <div class="form-group">
          <div class="col-md-offset-1 col-md-9">
          
          <label class="col-md-3 control-lable text-right "> 清除学生数据表数据: </label>
          <div class="input-group">

          <input class="form-control" type="text"  name="pass" value="" placeholder="输入ok确认删除"> 
           <span class="input-group-addon fix-border fix-padding">
           <button type="submit" class="btn btn-warning btn">清除学生数据</button>
           </span>
         </div>
         </div>
         </div>

         <div class="form-group">
           <div class="col-md-offset-3 col-md-8 ">
           <a class="btn btn-danger" href="{:U('Student/deleteTermScore')}">清除学期成绩</a></div>
           </div>
         </div>
         </form>




       </div>
</block>